# 输入一个英文句子，翻转句子中的单词顺序，但单词内字符的顺序不变

def sentence(sen):
    sen2 = sen[::-1]
    # print(sen2) # 反转整句 ANIHC htiw dnats NAHUW htiw dnats
    
    new_list=sen2.split(' ') 
    # print(new_list) # 将新句子转为列表 ['', 'ANIHC', 'htiw', 'dnats', 'NAHUW', 'htiw', 'dnats']

    list1 = []
    for i in new_list:
        word = i[::-1]  # 将列表内的单词逐一反转
        list1.append(word)
    new_sen = ' '.join(list1) # 形成新的字符串
    
    print(new_sen)


sen = "stand with WUHAN stand with CHINA "

sentence(sen)

# 没有考虑到标点符号的问题


